{include file='../application/admin/view/head.html'/}
{include file='../application/admin/view/menu.html'/}
<section class="Hui-article-box">
    <nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i> 
        首页 <span class="c-gray en">&gt;</span>
        {$data['controllerName']}<span class="c-gray en">&gt;</span> 
        {$data['actionName']} 
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <div class="pd-20 text-c">
            <div class="text-c">
                <input type="text" name="name" id="" placeholder="栏目名称、id" style="width:250px" class="input-text">
                <button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
            </div>
            <div class="cl pd-5 bg-1 bk-gray mt-20">
                <span class="l"> 
                    <a href="javascript:;" onclick="datadel()" class="btn btn-danger radius">
                        <i class="Hui-iconfont">&#xe6e2;</i> 批量删除
                    </a>
                    <a href="javascript:;" onclick="node_add('添加节点','{:url("nodeEdit")}','800','500')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加节点</a> </span>
                <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span>
            </div>
            <div class="mt-1">
                    <table class="table table-border table-bordered table-hover table-bg table-sort">
                            <thead>
                                    <tr class="text-c">
                                            <th width="25"><input type="checkbox" name="" value=""></th>
                                            <th width="30">序号</th>
                                            <th width="100" class="text-l">节点名称</th>
                                            <th width="80">控制器</th>
                                            <th width="60">方法</th>
                                            <th width="80">层级</th>
                                            <th width="60">排序</th>
                                            <th width="80">父节点</th>
                                            <th width="120" >添加时间</th>
                                            <th width="100">操作</th>
                                    </tr>
                            </thead>
                            <tbody>
                                {volist name='list' id='vo'}
                                    <tr class="text-c">
                                        <td><input type="checkbox" name="ids"  svalue="{$vo.id}"></td>
                                        <td >{$key+1}</td>
                                        <td class="text-l">
                                            {if condition="$vo.level eq 0"}
                                                <span style="color:blue">{$vo.name}</span>
                                            {else/}
                                                <span style="color:green">&nbsp;--&nbsp;{$vo.name}</span>
                                            {/if}
                                        </td>
                                        <td >{$vo.controller}</td>
                                        <td >{$vo.action}</td>
                                        <td >
                                            {eq name="$vo.level" value='0'}
                                                <span style="color:forestgreen">顶级节点</span>
                                            {else/}
                                                <span style="color:midnightblue">次级节点</span>
                                            {/eq}
                                        </td>
                                        <td >{$vo.ord}</td>
                                        <td >{:getNodeName($vo.p_id)}</td>
                                        <td >{$vo.add_time|date="Y-m-d H:i:s",###}</td>
                                        <td class="f-14">                                            
                                            <a title="编辑" href="javascript:;" onclick="node_edit('编辑节点','{:url("nodeEdit",array('id'=>$vo.id))}','0','800','500')"  class="ml-10 " style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>
                                            <a title="删除" href="javascript:;" onclick="node_del(this,'1','{:url("nodeDel",array('id'=>$vo.id))}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
                                    </tr>			
                                {/volist}
                            </tbody>
                    </table>
            </div>
            <div class="pagelist">
                {$list ->render()}
            </div>

<!--请在下方写此页面业务相关的脚本-->
    </div>
</section>

{include file='../application/admin/view/foot.html'/}
<!--/请在上方写此页面业务相关的脚本-->